package com.java.star.mall.front.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改购物车商品项选中状态参数
 */
@Data
public class UpdateCartCheckedParam implements Serializable {

    private static final long serialVersionUID = -7146847762232795774L;

    @ApiModelProperty(value = "商品id")
    @NotNull(message = "商品id不能为空")
    private Integer productId;

    @ApiModelProperty(value = "是否选中")
    @NotNull(message = "选中状态不能为空")
    private Boolean checked;
}
